using System;
using System.Collections.Generic;

using TnPlus.Entities.Utils;
using TnPlus.Entities.Models;
using TnPlus.DAL;
using TnPlus.Common;

namespace TnPlus.Biz
{
	public class AcctListNotSendMessageService
	{
		/// <summary>
		/// Saves a record to the AcctListNotSendMessage table.
		/// </summary>
		public virtual void Insert(AcctListNotSendMessageInfo acctListNotSendMessageInfo)
		{
			try
			{
				new AcctListNotSendMessageDAO().Insert(acctListNotSendMessageInfo);
			}
			catch (Exception ex)
			{
				Logger.Error("TnPlus.Biz.AcctListNotSendMessage - Insert", ex);
				throw;
			}

		}

		/// <summary>
		/// Saves a record to the AcctListNotSendMessage table.
		/// </summary>
		public virtual void Update(AcctListNotSendMessageInfo acctListNotSendMessageInfo)
		{
			try
			{
				new AcctListNotSendMessageDAO().Update(acctListNotSendMessageInfo);
			}
			catch (Exception ex)
			{
				Logger.Error("TnPlus.Biz.AcctListNotSendMessage - Update", ex);
				throw;
			}

		}

		/// <summary>
		/// Delete a record from the AcctListNotSendMessage table.
		/// </summary>
		public virtual void Delete(string accountNo)
		{
			try
			{
				new AcctListNotSendMessageDAO().Delete(accountNo);
			}
			catch (Exception ex)
			{
				Logger.Error("TnPlus.Biz.AcctListNotSendMessage - Delete", ex);
				throw;
			}

		}

		/// <summary>
		/// Selects a single record from the AcctListNotSendMessage table.
		/// </summary>
		public virtual AcctListNotSendMessageInfo Select(string accountNo)
		{
			try
			{
				return new AcctListNotSendMessageDAO().Select(accountNo);
			}
			catch (Exception ex)
			{
				Logger.Error("TnPlus.Biz.AcctListNotSendMessage - Select", ex);
				throw;
			}

		}

		/// <summary>
		/// Selects all records from the AcctListNotSendMessage table.
		/// </summary>
		public List<AcctListNotSendMessageInfo> SelectAll()
		{
			try
			{
				return new AcctListNotSendMessageDAO().SelectAll();
			}
			catch (Exception ex)
			{
				Logger.Error("TnPlus.Biz.AcctListNotSendMessage - SelectAll", ex);
				throw;
			}

		}

	}
}
